package cn.xlbweb.sso.util;

import cn.xlbweb.sso.entity.User;
import org.springframework.web.context.request.RequestAttributes;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.servlet.http.HttpServletRequest;

/**
 * @author: bobi
 * @date: 2019-03-09 16:57
 * @description:
 */
public class SsoUtils {

//    public static User getUser() {
//        RequestAttributes requestAttributes = RequestContextHolder.currentRequestAttributes();
//        HttpServletRequest request = ((ServletRequestAttributes) requestAttributes).getRequest();
//        request.getSession().getAttribute();
//    }
}
